﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AEM.Data;

namespace AEM.Common
{
    public static class PermissionManager
    {
        public static bool hasPower(int value)
        {
            if (-1 == Config.userLogin.UserPermission) return true;
            if (-1 == value) return false;
            if ((Config.userLogin.UserPermission & value) > 0) return true;
            return false;
        }
    }
}
